package org.kotcloud.controller

import org.springframework.web.bind.annotation.ExceptionHandler
import org.springframework.web.bind.annotation.RestControllerAdvice
import java.lang.Exception


@RestControllerAdvice
open class AdvieController{


    @ExceptionHandler(Exception::class)
    fun exceptionHandler(e: Exception): String {
        return e.message?:""
    }
}
